package com.ruoyi.member.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import com.ruoyi.member.domain.Member;
import org.springframework.beans.factory.annotation.Autowired;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author:Jiang
 * @Date: 2023/08/03/ 10:28
 **/
public class SalesOrder extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    /**
     * 查询开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "查询开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /**
     * 查询结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "查询结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 订单编号 */
    @Excel(name = "采购单号")
    private String orderCode;

    /** 仓库编号*/
    @Excel(name = "仓库代码")
    private String warehouseCode;

    /** 商家名字 */
    @Excel(name = "商家名字")
    private String trueName;

    /** 店铺名称 */
    @Excel(name = "店铺名称")
    private String businessName;


    /** 大概地址 */
    @Excel(name = "大概地址")
    private String mainAddress;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String address;

    /** 采购数量 */
    @Excel(name = "采购数量")
    private Long buyNum;

    /** 支付类型 */
    @Excel(name = "支付类型")
    private Long payType;

    /** 物流费 */
    @Excel(name = "物流费")
    private Long deliveryFee;

    /** 订单金额 */
    @Excel(name = "金额")
    private BigDecimal amount;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Long orderState;

    /** 应付款 */
    @Excel(name = "应付款")
    private Double allMoney;

    /** 仓库地址 */
    @Excel(name = "仓库地址")
    private String warehouseAddress;

    /** 买家电话 */
    @Excel(name = "买家电话")
    private String tel;

    /** 仓库管理员*/
    @Excel(name = "仓库管理员")
    private String nickName;

    /** 订单步骤*/
    @Excel(name = "订单步骤")
    private String orderStep;

    public String getOrderStep() {
        return orderStep;
    }

    public void setOrderStep(String orderStep) {
        this.orderStep = orderStep;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getTel() {
        return tel;
    }


    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getWarehouseAddress() {
        return warehouseAddress;
    }

    public void setWarehouseAddress(String warehouseAddress) {
        this.warehouseAddress = warehouseAddress;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getwarehouseCode() {
        return warehouseCode;
    }

    public void setwarehouseCode(String warehouseCode) {
        this.warehouseCode = warehouseCode;
    }



    public String getMainAddress() {
        return mainAddress;
    }

    public void setMainAddress(String mainAddress) {
        this.mainAddress = mainAddress;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Long getBuyNum() {
        return buyNum;
    }

    public void setBuyNum(Long buyNum) {
        this.buyNum = buyNum;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Long getOrderState() {
        return orderState;
    }

    public void setOrderState(Long orderState) {
        this.orderState = orderState;
    }

    public SalesOrder() {
    }

    public String getTrueName() {
        return trueName;
    }

    public void setTrueName(String trueName) {
        this.trueName = trueName;
    }

    public String getBusinessName() {
        return businessName;
    }

    public void setBusinessName(String businessName) {
        this.businessName = businessName;
    }
    public Long getpayType() {
        return payType;
    }

    public void setpayType(Long payType) {
        this.payType = payType;
    }



    public Long getDeliveryFee() {
        return deliveryFee;
    }

    public void setDeliveryFee(Long deliveryFee) {
        this.deliveryFee = deliveryFee;
    }

    public Double getAllMoney() {
        return allMoney;
    }

    public void setAllMoney(Double allMoney) {
        this.allMoney = allMoney;
    }

    public SalesOrder(Date payTime, Date startTime, Date endTime, String orderCode, String warehouseCode, String trueName, String businessName, String mainAddress, String address, Long buyNum, Long payType, Long deliveryFee, BigDecimal amount, Long orderState, Double allMoney, String warehouseAddress) {
        this.payTime = payTime;
        this.startTime = startTime;
        this.endTime = endTime;
        this.orderCode = orderCode;
        this.warehouseCode = warehouseCode;
        this.trueName = trueName;
        this.businessName = businessName;
        this.mainAddress = mainAddress;
        this.address = address;
        this.buyNum = buyNum;
        this.payType = payType;
        this.deliveryFee = deliveryFee;
        this.amount = amount;
        this.orderState = orderState;
        this.allMoney = allMoney;
        this.warehouseAddress = warehouseAddress;
    }

    @Override
    public String toString() {
        return "SalesOrder{" +
                "payTime=" + payTime +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", orderCode='" + orderCode + '\'' +
                ", warehouseCode='" + warehouseCode + '\'' +
                ", trueName='" + trueName + '\'' +
                ", businessName='" + businessName + '\'' +
                ", mainAddress='" + mainAddress + '\'' +
                ", address='" + address + '\'' +
                ", buyNum=" + buyNum +
                ", payType=" + payType +
                ", deliveryFee=" + deliveryFee +
                ", amount=" + amount +
                ", orderState=" + orderState +
                ", allMoney=" + allMoney +
                ", warehouseAddress='" + warehouseAddress + '\'' +
                '}';
    }
}
